package com.eveinfo.display.skills;

import java.util.HashMap;

import com.eveinfo.api.character.sheet.ApiKnownSkill;
import com.eveinfo.api.utils.skilllist.ApiSkill;

public class KnowSkillsFilter implements SkillsFilter {
	
	private HashMap<Integer, ApiKnownSkill> set;
	
	public KnowSkillsFilter(HashMap<Integer, ApiKnownSkill> set) {
		this.set = set;
		if (set == null)
			return;
	}

	@Override
	public boolean isDisplay(ApiSkill skill) {
		return set.containsKey(skill.getTypeID());
	}

}
